package cn.gok.web.beans;

public class Page {
	private boolean isPage=false;//默认不分页
	private int allPage=0;//全部页面
	private int nowPage=1;//当前页面
	private int size=5;//每页显示的数量
	private int begin=0;//默认的开始查询的位置
	public boolean isPage() {
		return isPage;
	}
	public void setPage(boolean Page) {
		isPage = Page;
	}
	public int getAllPage() {
		return allPage;
	}
	public void setAllPage(int allPage) {
		this.allPage = allPage;
	}
	public int getNowPage() {
		return nowPage;
	}
	public void setNowPage(int nowPage) {
		this.nowPage = nowPage;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getBegin() {
		return (this.nowPage-1)*this.size;
	}
	
}
